package cn.edu.huas.shopping.service;

import cn.edu.huas.shopping.exception.DaoException;
import cn.edu.huas.shopping.exception.UsernameExitsException;
import cn.edu.huas.shopping.exception.UsernameOrPwdErrorException;
import cn.edu.huas.shopping.pojo.User;

/*定义用户相关的逻辑
* */
public interface UserService {
    //定义登录的数据
    public User login(String username,String pwd) throws DaoException, UsernameOrPwdErrorException;
    //注册
    public void regist(User user) throws DaoException, UsernameExitsException;
    //判断用户名是否存在
    public void checkUserName(String username) throws DaoException, UsernameExitsException;
}
